﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using CSharpLogger.Common;

namespace CSharpLogger
{
    /// <summary>
    /// 
    /// </summary>
    public static class FactoryConfiguration
    {
        public static void Configure()
        {
            var builder = ContainerBuilderFactory.ContainerBuilder;

            builder.RegisterType<FileWrapper>().As<IFileWrapper>().SingleInstance();

            ContainerBuilderFactory.Container = builder.Build();
        }
    }
}
